package day8homework;

public class Catfish extends AbstractFish{
	@Override
	public void swim() {
		System.out.println("鲶鱼会游泳");
	}
	//子类特有的方法
	public void shape() {
		System.out.println("鲶鱼外形奇特");
	}
	public static void main(String[] args) {
		AbstractFish abstractFish = new Catfish();
		abstractFish.swim();
		//在鲶鱼的角度实例化对象
		System.out.println("---------------");
		Catfish catfish = new Catfish();
		catfish.swim();
		catfish.shape();
	}
}
